package com.yhally.eureka;

import com.yhally.eureka.common.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/echo")
public class EchoController {

    @GetMapping("/sayHello")
    public CommonResult sayHello() {
        return new CommonResult(200, "Hello!");
    }
}
